﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Drawing;
using System.Windows.Forms;
using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Styx.Logic.POI;

namespace HarmoniousVigor
{
    public partial class Warlock
    {
        public bool destructionCombat()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (destructionPVPCombat())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (destructionDungeonCombat())
                    return true;
            }
            else
            {
                if (destructionQuestingCombat())
                    return true;
            }

            return false;
        }
        public bool destructionHeal()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (destructionPVPHeal())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (destructionDungeonHeal())
                    return true;
            }
            else
            {
                if (destructionQuestingHeal())
                    return true;
            }

            return false;
        }
        public bool destructionBuff()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (destructionPVPBuff())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (destructionDungeonBuff())
                    return true;
            }
            else
            {
                if (destructionQuestingBuff())
                    return true;
            }

            return false;
        }
        public bool destructionPullSpell()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (destructionPVPPullSpell())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (destructionDungeonPullSpell())
                    return true;
            }
            else
            {
                if (destructionQuestingPullSpell())
                    return true;
            }

            return false;
        }
    }
}
